package com.caigou.bean.cms.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "文章类查询参数")
public class ArticleListParam {
    // 公用参数(查询条件)
    @ApiModelProperty(value = "库别(全部:-1、1咨询、2法律、3案例、4采购文件、5词库、6处理信息、7图集)", name = "editor", required = true)
    private Integer articleType;
    @ApiModelProperty(value = "内容ID/内文标题/关键字查询(默认空字符串)", name = "title", required = true)
    private String title;
    @ApiModelProperty(value = "时间筛选方式(-1默认不选择时间/1创建时间/2发布/更新时间)", name = "timeType", required = true)
    private Integer timeType;
    @ApiModelProperty(value = "开始时间(如果timeType不为-1该字段必填)", name = "startTime", required = true)
    private String startTime;
    @ApiModelProperty(value = "结束时间(如果未选择，则以当前时间计算)", name = "endTime", required = true)
    private String endTime;
    @ApiModelProperty(value = "作者(昵称)", name = "author", required = true)
    private String author;
    @ApiModelProperty(value = "编辑(昵称)", name = "editor", required = true)
    private String editor;
    @ApiModelProperty(value = "约稿人(昵称)", name = "articleScout", required = true)
    private String articleScout;
    @ApiModelProperty(value = "数据创建人(用户ID)", name = "articleCreateUser", required = true)
    private String articleCreateUser;
    @ApiModelProperty(value = "发布状态(默认值:-1、待审核:0、审核通过:1、审核不通过:2)", name = "status", required = true)
    private Integer status;
    @ApiModelProperty(value = "信息来源(文字)", name = "articleSource", required = true)
    private String articleSource;
    @ApiModelProperty(value = "付费状态(默认值:-1、免费:0、付费:1)", name = "editor", required = true)
    private Integer vipStatus;
    @ApiModelProperty(value = "报纸刊登状态(默认值:-1、不需要刊登:0、需刊登-已刊登:1、需刊登-未刊登:2)", name = "articleNewPaperStatus", required = true)
    private Integer articleNewPaperStatus;
    @ApiModelProperty(value = "微信刊登状态(默认值:-1、不需要刊登:0、需刊登-已刊登:1、需刊登-未刊登:2)", name = "articleWeChatStatus", required = true)
    private Integer articleWeChatStatus;
    @ApiModelProperty(value = "分页页数", name = "page", required = true, example = "1")
    private Integer page = 1;
    @ApiModelProperty(value = "分页条数", name = "size", required = true, example = "10")
    private Integer size = 10;
    @ApiModelProperty(value = "查询范围(0文章大列表、1我的稿件、2待我审核、3回收站)", name = "articleScope")
    private Integer articleScope;
    private Integer sortType;// 排序方式(0,无排序1、创建时间正2、创建时间负3、更新时间正4、更新时间负5、点击量正6、点击量倒)
    private List<String> authorStr;// 查询到的作者ID列表
    private List<String> wordStr;// 查询到的关键词ID列表
    private String articleKeyWord;// 关键字
    private String plateId;// 频道ID
    // 中间参数(服务端处理)
    private String articleUser;
    private String articleId;

    private Integer articleCreateSource;// 创建来源(null 或者 0的时候查询官网稿件库，其余为分站采集)
    private Integer articlePublicLocation;// 发布来源(null 或者 0的时候查询官网稿件库，其余为分站发布)

    private Integer articleIsOriginal;
}
